<?php
// 前台教育物业管理模块
class JywyAction extends CommonAction {
	function _filter(&$map){
		//$map['id'] = array('egt',1);
		$map['wymc'] = array('like',"%".$_POST['wymc']."%");
	}
	
	function edit() {
        $name = $this->getActionName();
        $model = M($name);
        $id = $_REQUEST [$model->getPk()];
        $vo = $model->getById($id);
		
        $model 	= D('vjywy');
		$list	= $model->where('wyid='.$id)->order('zlrq1 desc')->limit(20)->select();//显示租赁人，按租赁日期起排序
        
		$this->assign('list',$list);
        $this->assign('vo', $vo);
        $this->display();
    }
	function showzl(){
		$zl 	= D('vjywy');
		$list	= $zl->where("id=".$_GET['id'])->select();
		if ($list){ 
			  $this->ajaxReturnDg($list,"查询成功！",1); 
			}else{  
			  $this->ajaxReturnDg(0,"没有相关信息！",0); 
		} 
	}
	
}
?>